package com.yxt.shecaiyun.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("user")
public class User {
  @TableId(type = IdType.AUTO)
  private Long id;

  @TableField("user_name")
  private String userName;  // 新增用户名字段

  @TableField("user_account")
  private String account;

  @TableField("user_password")
  private String password;

  @TableField("user_phone")
  private String phone;

  @TableField("user_email")
  private String email;

  @TableField("is_active")
  private Integer active = 1;
//
//  @TableField("user_grade")
//  private Integer grade;    // 新增年级字段

  @TableField("user_number")
  private String number;

  @TableField("user_description")
  private String description; // 新增描述字段

  @TableField("user_major")
  private String major;      // 新增专业字段

//  @TableField("user_class")
//  private String clazz;

  @TableField(value = "created_at", fill = FieldFill.INSERT)
  private LocalDateTime createdAt;

  @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
  private LocalDateTime updatedAt;  // 补充更新时间

  @TableField("user_avatar")
  private String avatar;    // 新增头像字段
//
//  @TableField("is_manager")
//  private Boolean manager = false;
}